package com.bigfish.gbs.dao;


import com.bigfish.gbs.entity.Merchant;

public interface MerchantMapper {
    int deleteByPrimaryKey(Integer mid);

    int insert(Merchant record);

    int insertSelective(Merchant record);

    Merchant selectByPrimaryKey(Integer mid);

    int updateByPrimaryKeySelective(Merchant record);

    int updateByPrimaryKey(Merchant record);


    
    /**检查用户名
     * @return list
     */
    int checkMerchantname(String merchantname);
    
    /**登陆
     * @return int
     */
    
    Merchant login(Merchant merchant);

    public Merchant findById(String mid);

    public void modifyMerchant(Merchant merachant);


    
}